publish_headers(infiniband
  ibnetdisc.h
  ibnetdisc_osd.h
  )

rdma_library(ibnetdisc libibnetdisc.map
  # See Documentation/versioning.md
  5 5.1.${PACKAGE_VERSION}
  chassis.c
  ibnetdisc.c
  ibnetdisc_cache.c
  query_smp.c
  )
target_link_libraries(ibnetdisc LINK_PRIVATE
  ibmad
  ibumad
  )
rdma_pkg_config("ibnetdisc" "libibumad libibmad" "")

rdma_test_executable(testleaks tests/testleaks.c)
target_link_libraries(testleaks LINK_PRIVATE
  ibmad
  ibumad
  ibnetdisc
)
